package study.saas.order.facade.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import study.saas.common.viewmodel.ApiResultV2;
import study.saas.order.entity.Indent;
import study.saas.order.service.IndentFacade;
import study.saas.order.service.IndentService;
import study.saas.order.service.model.IndentCreateDTO;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author sunyi
 */
@Component("orderFacade")
@Service(version = "1.0.0")
public class IndentFacadeImpl implements IndentFacade {
    @Resource
    private IndentService service;

    @Override
    public Indent findOne(Integer id) {
        return null;
    }

    @Override
    public Indent save(Indent entity) {
        return service.save(entity);
    }

    @Override
    public List<Indent> save(List<Indent> entityList) {
        return null;
    }

    @Override
    public void deleteById(Integer id) {

    }

    /**
     * 查询全部
     * @return
     */
    @Override
    public ApiResultV2<List<Indent>> selectAll() {
        return service.selectAll();
    }

    @Override
    public ApiResultV2 select(IndentCreateDTO indent) {
        return service.select(indent);
    }
}
